-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubly linked freelist fix #44585
Doubly linked freelist fix #44585
Conversation
Details: In gc_heap::allocate_uoh_object. we set the background mark bit if the new object is in a range that has mark bits committed. However, if the object is in a segment that is allocated during background_sweep, we won't actually sweep the segment, and so the background mark bits stays on, causing confusion in the next background GC - the object itself will survive, but we won't keep the objects that it points at, so we'll have heap corruption.
Tagging subscribers to this area: @dotnet/gc Issue meta data
|
In gc_heap::allocate_uoh_object. we set the background mark bit if the new object is in a range that has the corresponding portions of the background mark_array committed.
However, if the object is in a segment that is allocated during background_sweep, we won't actually sweep the segment, and so the background mark bit stays on, causing confusion in the next background GC - the object itself will survive, but we won't keep the objects that it points at, so we'll have heap corruption.